package top.laoshuzi.designpatterns.base.created.factory.kotlin

import org.junit.Test

class Client {

    @Test
    fun operation() {

        //创建产品
        println(ProductFactory.createProduct(ProductFactory.TYPE_PRODUCT_A).getName())
        println(ProductFactory.createProduct(ProductFactory.TYPE_PRODUCT_B).getName())

    }

}